<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class ElectPool extends BaseModel
{

    public $table = 'elect_pool';
    public $timestamps = true;
    static $unguarded = true;

    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'update_time';

    public function pics()
    {
        return $this->hasMany(ElectPoolPicture::class, "elect_pool_id","id")->where("status", "=", 1);
    }

}